

/*---------------------------------------------------------
   Initializes the effect. The data is a table of data 
   which was passed from the server.
---------------------------------------------------------*/
function EFFECT:Init( data )
	
	local pos = data:GetOrigin()
	local crt = data:GetAngle()
	
	self.Entity.pos = pos

	local emitter = ParticleEmitter( pos )
	
		// Big fast splash at top
		local particle = emitter:Add( "effects/blueflare1", self.Entity.pos )
			particle:SetDieTime( 0.5 )
			particle:SetStartAlpha( 250 )
			particle:SetEndAlpha( 50 )
			particle:SetStartSize( math.random(1,2) )
			particle:SetEndSize( math.random(3,4) )
			particle:SetRoll( math.Rand( 0, 360 ) )
			particle:SetColor( crt.p,crt.y,crt.r )
			
	emitter:Finish()
	
end


/*---------------------------------------------------------
   THINK
   Returning false makes the entity die
---------------------------------------------------------*/
function EFFECT:Think( )
	return false
end


/*---------------------------------------------------------
   Draw the effect
---------------------------------------------------------*/
function EFFECT:Render()

	// Do nothing - this effect is only used to spawn the particles in Init
	
end



